package cn.itsource.pethome.user.service;

import cn.itsource.pethome.basic.util.AjaxResult;
import cn.itsource.pethome.user.domain.User;
import cn.itsource.pethome.basic.service.IBaseService;
import cn.itsource.pethome.user.domain.dto.UserDto;

/**
 * @description: 描述:
 * @date: 2020/8/14 16:25
 * @author: summer
 * version: 1.0
 */

public interface IUserService extends IBaseService<User> {

    /**普通注册时 电话号码验证*/
    AjaxResult loadPhone(String number);

    AjaxResult loadEmail(String email);

    //普通用户注册
    void register(UserDto userDto);

    //前端普通用户登录
    User getUsernameAndPassword(String username, String password);
}
